#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <linux/fs.h>

unsigned long blockcount(const char *filename);
size_t parityWrite(int fd0, int fd1, int fd2,const void *buf0, const void *buf1,size_t count);
size_t parityRead(int fd0, int fd1, void *buf, size_t count);
void do_parity();
void do_recovery(int device_id);

#define RAID_BLOCK_SIZE 512

